<?php
$UserName = $_POST["UserName"];
$Password = $_POST["Password"];
$last = file_get_contents('UserList.txt');
$txt = "$UserName$Password\r$last";
$myfile = fopen("UserList.txt",'w');
fwrite($myfile, $txt);
fclose($myfile);
mkdir("../Exam/Python/output/".$UserName);
header("Location: index.php");
?>